package com.mixfate.hystrix.client;

import com.mixfate.hystrix.client.fallback.UserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "hystrix-server", path = "/user", fallback = UserServiceFallback.class)
public interface UserService {

    @GetMapping("/{id}")
    String findById(@PathVariable("id") String id);

}
